package com.fl.nettydemo.exam;

import java.text.DateFormat;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class EntityTest {
    public static void main(String[] args) {
        EntityOne one = new EntityOne();
        EntityTwo two = new EntityTwo();
        ErmEntry<EntityOne> entry = new ErmEntry<>();
        ErmEntry<EntityTwo> entry2 = new ErmEntry<>();
        //DateTimeFormatter pattern = DateTimeFormatter.ofPattern("yyyy-MM-HH");
        entry.setPojo(one);
        entry.pojo.setDateTime(LocalDateTime.now());
        entry.pojo.setInfo("我只是一个测试类");
        entry.pojo.setType(0);
        entry.setId(10086);
        entry2.setPojo(two);
        entry2.pojo.setInfo("测试类2");
        entry2.pojo.setType(1);
        entry2.pojo.setTotal(111L);
        System.out.println(entry+"\n"+entry2);

    }
}
